package com.gcxy.core;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Copyright (C), 2024-2024, BUG闭退！
 * Author: Huang先森
 * Date: 2024/7/22 13:06
 * FileName: PageDTO
 * Description:
 */
@Data
public class PageDTO {
    /**
     * 当前页
     */
    @NotNull(message = "当前页必填")
    @ApiModelProperty(value = "当前页必填", required = true)
    @Min(value = 1, message = "当前页最小是1")
    private Integer pageNo;

    /**
     * 每页大小
     */
    @NotNull(message = "分页大小必填")
    @ApiModelProperty(value = "分页大小必填", required = true)
    @Min(value = 1, message = "每页大小最小是1")
    private Integer pageSize;
}
